package ve.usb.ddp;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

public class F_DatosUsuario extends org.apache.struts.action.ActionForm {
    
    
    public F_DatosUsuario() {
        super();
        nombreCompleto = "";
        correo = "";
        newPassword = "";
        newPassword1 = "";

    }
    
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        nombreCompleto = "";
        correo = "";
        newPassword = "";
        newPassword1 = "";

    }

    public static F_DatosUsuario clear(ActionMapping mapping, HttpServletRequest request) {
        HttpSession sess = request.getSession();
        F_DatosUsuario fF_DatosUsuario = (F_DatosUsuario) sess.getAttribute("F_DatosUsuario");
        if (fF_DatosUsuario == null) {
            fF_DatosUsuario = new F_DatosUsuario();
            sess.setAttribute("F_DatosUsuario", fF_DatosUsuario);
        } else {
            fF_DatosUsuario.reset(mapping, request);
        }
        return fF_DatosUsuario;
    }

//    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
//        ActionErrors errors = new ActionErrors();
//
//        return errors;
//    }

    /**
     * Holds value of property nombreCompleto.
     */
    private String nombreCompleto;

    /**
     * Getter for property nombreCompleto.
     * @return Value of property nombreCompleto.
     */
    public String getNombreCompleto() {
        return this.nombreCompleto;
    }

    /**
     * Setter for property nombreCompleto.
     * @param nombreCompleto New value of property nombreCompleto.
     */
    public void setNombreCompleto(String nombreCompleto) {
        this.nombreCompleto = nombreCompleto;
    }

    /**
     * Holds value of property correo.
     */
    private String correo;

    /**
     * Getter for property correo.
     * @return Value of property correo.
     */
    public String getCorreo() {
        return this.correo;
    }

    /**
     * Setter for property correo.
     * @param correo New value of property correo.
     */
    public void setCorreo(String correo) {
        this.correo = correo;
    }

    /**
     * Holds value of property newPassword.
     */
    private String newPassword;

    /**
     * Getter for property newPassword.
     * @return Value of property newPassword.
     */
    public String getNewPassword() {
        return this.newPassword;
    }

    /**
     * Setter for property newPassword.
     * @param newPassword New value of property newPassword.
     */
    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    /**
     * Holds value of property newPassword1.
     */
    private String newPassword1;

    /**
     * Getter for property newPassword1.
     * @return Value of property newPassword1.
     */
    public String getNewPassword1() {
        return this.newPassword1;
    }

    /**
     * Setter for property newPassword1.
     * @param newPassword1 New value of property newPassword1.
     */
    public void setNewPassword1(String newPassword1) {
        this.newPassword1 = newPassword1;
    }




}